package com.etime.shycourse.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 *
 * </p>
 *
 * @author wb
 * @since 2021-12-22
 */
@ApiModel(value = "Lesson 课时对象", description = "")
public class Lesson implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "lessonid", type = IdType.AUTO)
    private Integer lessonid;

    private Integer chapterid;

    @ApiModelProperty(value = "排序")
    private Integer lessonsort;

    private String lessontitle;

    private String lessonsummary;

    private String lessontags;

    @ApiModelProperty(value = "txt --普通文本课程 video--视频课程  word --word文档课程  ppt --ppt文档课程	online --在线直播课程")
    private String lessontype;

    private String lessoncontent;

    private Integer lessonmediaid;

    private String lessonmedianame;

    private String lessonmediaurl;

    private Integer lessonlen;

    private Integer lessonuserid;

    private String lessonusertruename;

    private Date lessoncreatetime;

    private Date lessonupdatetime;

    private BigDecimal lessonprice;

    private BigDecimal lessonorigninprice;

    private BigDecimal lessoncoinprice;

    private BigDecimal lessoncoinmaxpoint;

    private Integer lessonviewnum;

    private Integer lessonbuynum;

    @ApiModelProperty(value = "0--未发布	  1--发布")
    private Integer lessonstate;

    @ApiModelProperty(value = "0--不允许	  1--允许	            	            说明：允许试听，但是允许试听长度为0，表示本课时是试听课时。")
    private Integer lessontriable;

    @ApiModelProperty(value = "单位：分钟")
    private Integer lessontrylen;
    @TableField(exist = false)
    private Mediabank mediabank;

    public Mediabank getMediabank() {
        return mediabank;
    }

    public void setMediabank(Mediabank mediabank) {
        this.mediabank = mediabank;
    }

    @TableField(exist = false)
    private List<Mediabank> mediabanks;

    public List<Mediabank> getMediabanks() {
        return mediabanks;
    }

    public void setMediabanks(List<Mediabank> mediabanks) {
        this.mediabanks = mediabanks;
    }

    public Integer getLessonid() {
        return lessonid;
    }

    public void setLessonid(Integer lessonid) {
        this.lessonid = lessonid;
    }

    public Integer getChapterid() {
        return chapterid;
    }

    public void setChapterid(Integer chapterid) {
        this.chapterid = chapterid;
    }

    public Integer getLessonsort() {
        return lessonsort;
    }

    public void setLessonsort(Integer lessonsort) {
        this.lessonsort = lessonsort;
    }

    public String getLessontitle() {
        return lessontitle;
    }

    public void setLessontitle(String lessontitle) {
        this.lessontitle = lessontitle;
    }

    public String getLessonsummary() {
        return lessonsummary;
    }

    public void setLessonsummary(String lessonsummary) {
        this.lessonsummary = lessonsummary;
    }

    public String getLessontags() {
        return lessontags;
    }

    public void setLessontags(String lessontags) {
        this.lessontags = lessontags;
    }

    public String getLessontype() {
        return lessontype;
    }

    public void setLessontype(String lessontype) {
        this.lessontype = lessontype;
    }

    public String getLessoncontent() {
        return lessoncontent;
    }

    public void setLessoncontent(String lessoncontent) {
        this.lessoncontent = lessoncontent;
    }

    public Integer getLessonmediaid() {
        return lessonmediaid;
    }

    public void setLessonmediaid(Integer lessonmediaid) {
        this.lessonmediaid = lessonmediaid;
    }

    public String getLessonmedianame() {
        return lessonmedianame;
    }

    public void setLessonmedianame(String lessonmedianame) {
        this.lessonmedianame = lessonmedianame;
    }

    public String getLessonmediaurl() {
        return lessonmediaurl;
    }

    public void setLessonmediaurl(String lessonmediaurl) {
        this.lessonmediaurl = lessonmediaurl;
    }

    public Integer getLessonlen() {
        return lessonlen;
    }

    public void setLessonlen(Integer lessonlen) {
        this.lessonlen = lessonlen;
    }

    public Integer getLessonuserid() {
        return lessonuserid;
    }

    public void setLessonuserid(Integer lessonuserid) {
        this.lessonuserid = lessonuserid;
    }

    public String getLessonusertruename() {
        return lessonusertruename;
    }

    public void setLessonusertruename(String lessonusertruename) {
        this.lessonusertruename = lessonusertruename;
    }

    public Date getLessoncreatetime() {
        return lessoncreatetime;
    }

    public void setLessoncreatetime(Date lessoncreatetime) {
        this.lessoncreatetime = lessoncreatetime;
    }

    public Date getLessonupdatetime() {
        return lessonupdatetime;
    }

    public void setLessonupdatetime(Date lessonupdatetime) {
        this.lessonupdatetime = lessonupdatetime;
    }

    public BigDecimal getLessonprice() {
        return lessonprice;
    }

    public void setLessonprice(BigDecimal lessonprice) {
        this.lessonprice = lessonprice;
    }

    public BigDecimal getLessonorigninprice() {
        return lessonorigninprice;
    }

    public void setLessonorigninprice(BigDecimal lessonorigninprice) {
        this.lessonorigninprice = lessonorigninprice;
    }

    public BigDecimal getLessoncoinprice() {
        return lessoncoinprice;
    }

    public void setLessoncoinprice(BigDecimal lessoncoinprice) {
        this.lessoncoinprice = lessoncoinprice;
    }

    public BigDecimal getLessoncoinmaxpoint() {
        return lessoncoinmaxpoint;
    }

    public void setLessoncoinmaxpoint(BigDecimal lessoncoinmaxpoint) {
        this.lessoncoinmaxpoint = lessoncoinmaxpoint;
    }

    public Integer getLessonviewnum() {
        return lessonviewnum;
    }

    public void setLessonviewnum(Integer lessonviewnum) {
        this.lessonviewnum = lessonviewnum;
    }

    public Integer getLessonbuynum() {
        return lessonbuynum;
    }

    public void setLessonbuynum(Integer lessonbuynum) {
        this.lessonbuynum = lessonbuynum;
    }

    public Integer getLessonstate() {
        return lessonstate;
    }

    public void setLessonstate(Integer lessonstate) {
        this.lessonstate = lessonstate;
    }

    public Integer getLessontriable() {
        return lessontriable;
    }

    public void setLessontriable(Integer lessontriable) {
        this.lessontriable = lessontriable;
    }

    public Integer getLessontrylen() {
        return lessontrylen;
    }

    public void setLessontrylen(Integer lessontrylen) {
        this.lessontrylen = lessontrylen;
    }

    @Override
    public String toString() {
        return "Lesson{" +
                "lessonid=" + lessonid +
                ", chapterid=" + chapterid +
                ", lessonsort=" + lessonsort +
                ", lessontitle=" + lessontitle +
                ", lessonsummary=" + lessonsummary +
                ", lessontags=" + lessontags +
                ", lessontype=" + lessontype +
                ", lessoncontent=" + lessoncontent +
                ", lessonmediaid=" + lessonmediaid +
                ", lessonmedianame=" + lessonmedianame +
                ", lessonmediaurl=" + lessonmediaurl +
                ", lessonlen=" + lessonlen +
                ", lessonuserid=" + lessonuserid +
                ", lessonusertruename=" + lessonusertruename +
                ", lessoncreatetime=" + lessoncreatetime +
                ", lessonupdatetime=" + lessonupdatetime +
                ", lessonprice=" + lessonprice +
                ", lessonorigninprice=" + lessonorigninprice +
                ", lessoncoinprice=" + lessoncoinprice +
                ", lessoncoinmaxpoint=" + lessoncoinmaxpoint +
                ", lessonviewnum=" + lessonviewnum +
                ", lessonbuynum=" + lessonbuynum +
                ", lessonstate=" + lessonstate +
                ", lessontriable=" + lessontriable +
                ", lessontrylen=" + lessontrylen +
                "}";
    }
}
